const {baseService2} =require('../../baseService2')
const {userRolesBean} =require('../../../beans/impl/userRolesBean/index')
const {userRoles_model} =require('../../../dao/model/model')

/* 
1,修改导入的bean,和model,就是上面
2,把构造方法里的这些都改下

*/

/* 异常类 */
class userRolesServiceError extends Error {
    constructor(error,message='userRolesService'){
        super()
        this.error = error
        this.message=message
    }
}


class userRolesService extends baseService2 {

    static ins = new userRolesService()

    constructor(){
        super(userRoles_model,userRolesServiceError)
    }

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new userRolesService()
        }
    }





}







module.exports={userRolesService}
